<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="/struts-tags"%>
<div id="pagina-principal">
<h2 class="tituloA">Logueo de Usuarios</h2>
	<div class="campo">
		<f:actionerror/>
	</div>
	<f:form styleId="loginForm" namespace="common" action="login">
		<div class="campo">
			<f:textfield name="usuario.username" label="Usuario" cssClass="inputP"/>
		</div>
		<div class="campo">
			<f:password name="usuario.password" label="Clave" cssClass="inputP"/>
		</div>
		<div align="center">
			<f:submit value="Ingresar"/>
			<div class="clear"></div>
		</div>
	</f:form>		
</div>
<script type="text/javascript">
$(function(){
	var ing = $('#ingresar');
	ing.click(function(e){
		e.preventDefault();
		$('#loginForm').submit();
	});

});
</script>